package com.weigang.webservice.service;

import com.weigang.webservice.dto.User;
import com.weigang.webservice.utils.Constant;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;

@WebService(targetNamespace = Constant.NAMESPACE)
public interface UserService {

    @WebMethod
    @WebResult(targetNamespace = Constant.NAMESPACE)
    @XmlElement(required = true)
    User queryUser(@WebParam(name = "id") String id, @WebParam(name = "name") String name);


    @WebMethod
    @WebResult(targetNamespace = Constant.NAMESPACE)
    @XmlElement(required = true)
    List<User> queryUserData();
}
